<?php
$line = array('CASE_ID','ACCOUNT_NUMBER');
$csv->addRow($line);
WHILE($row = mysql_fetch_array($result))
  {
	$line = array($row["caseid"],$row["accountnumber"]);
    $csv->addRow($line);
  }


echo $csv->render('EXPORT_PONDCASES.csv');

?>